/*
 * @Author: your name
 * @Date: 2020-05-27 09:22:17
 * @LastEditTime: 2020-11-02 14:44:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /yigo/src/Redurces/UserInfoRedurce.js
 */ 
import { combineReducers } from 'redux'


import {
    authUserToken,
    commonReducer,
} from './RootRedurce'


const UserInfo = combineReducers(
    {
    //用户登录操作
    onLogin:commonReducer('api/onLogin'),
    //商家注册
    register:commonReducer('api/registerBusiness'),
    //录入商品
    commitfood:commonReducer('api/commitfood'),
    //商品列表
    foodList:commonReducer('api/foodList'),
    //商品详情
    foodDetail:commonReducer('api/singleGoodDetail'),
    //文件上传
    upload:commonReducer('api/uploads'),
    //token 认证流程
    authUserToken:authUserToken('RefreshToken')
})

export default UserInfo